<template>
	<view class="mord">
		<view class="top">
			<navigator class="active">
				待评价
			</navigator>
			<navigator url="/pages/user/commentb">
				已评价
			</navigator>

		</view>
		<view class="list">
			<view class="li" v-for='l in data'>
				<view class=""  v-for='la in l.oOrderDetails'>
					<view class="imgbox">
						<image :src="la.DefaultImage" mode="widthFix"></image>
					</view>
					<view class="text">
						<view class="h1">
							{{la.cProductName}}
						</view>
						<view class="p">
							{{la.cProductClassName}}
						</view>
					
					</view>
				</view>
				
				<view class="">
					<view class="p">
						<!-- 评价可得50币 -->
						<navigator url="">发表评价</navigator>
						<view class="both"></view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		name: "",
		components: {

		},
		data() {
			return {
				num: 0,
				data: []
			}
		},
		onLoad(options) {
			var that = this;
			that.oder('ENDORDER');
			
		},
		methods: {
			oder(s) {
				let that = this;
				that.$Request.post(
					that.$api.httpApi.user.oder + '&token=' + that.$SysCache.get('token'), {
						'onLineOffLine': 0,
						'orderType': 2,
						status: s
					}
				).then(res => {
					if (res.code == 200) {
						that.data = res.data.orders;
					}
				});
			}
		},
		onNavigationBarButtonTap() {
			// uni.navigateTo({
			//     // url: '/pages/user/vipjs'
			// })
		}


	}
</script>

<style scoped>
	.both{
		display: block;
		clear: both;
	}
	.text {
		width: calc(100% - 225rpx - 25rpx);
		display: inline-block;
		vertical-align: middle;
		font-size: 26rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: rgba(77, 77, 77, 1);
	}

	.p {
		font-size: 22rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: rgba(136, 136, 136, 1);
		margin-top: 18rpx;
		line-height: 41rpx;
	}

	.p text {
		font-size: 30rpx;
		margin-right: 12rpx;
	}

	.p navigator {
		display: inline-block;
		float: right;
		width: 122rpx;
		height: 41rpx;
		background: rgba(240, 64, 111, 1);
		border-radius: 21rpx;
		font-size: 19rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
		line-height: 41rpx;
		text-align: center;
	}

	.nav {
		margin-top: 18rpx;
	}

	.nav navigator {
		display: inline-block;
		width: 97rpx;
		height: 45rpx;
		background: rgba(255, 255, 255, 1);
		border: 1px solid rgba(240, 64, 111, 1);
		color: rgba(240, 64, 111, 1);
		text-align: center;
		font-size: 22rpx;
		line-height: 45rpx;
		border-radius: 23rpx;
	}

	.nav .add {
		display: inline-block;
		float: right;
		width: 33rpx;
		margin-top: 10rpx;
	}

	.nav .add image {
		display: block;
		width: 100%;

	}

	.list {
		width: 90%;
		margin: auto;
		padding-top: 30rpx
	}

	.list .li {
		background: #fff;
		padding: 30rpx;
		margin-bottom: 20rpx;
	}

	.imgbox {
		width: 225rpx;
		display: inline-block;
		vertical-align: middle;
		margin-right: 25rpx;
		border-right: 1px solid #EFEFEF;
	}

	.imgbox image {
		max-width: 197rpx;
	}

	.top {
		height: 62rpx;
		background: #040000;
		font-size: 26rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: rgba(231, 231, 231, 1);
		text-align: center;
		display: flex;
		line-height: 62rpx;
	}

	.top navigator {
		flex: 1;
		margin-left: 90rpx;
		margin-right: 90rpx;
	}

	.active {
		border-bottom: 3rpx solid #F0406F;
		color: #F0406F;
	}

	uni-page-body {
		height: 100%;
	}

	.mord {
		min-height: 100%;
		background: #EEEEEE;
	}
</style>
